<?php
    function drawTable($set){
        echo "<table cellpadding='0px' cellspacing='0px' border='1px' width='840px'>";
        $n=5;
        for ($i=4;$i>=0;$i--){        
            echo "<tr width='840px' height='49px' align='center'>";
            echo "<td style='width:22px;background-color:#FFFFFF;'>&nbsp;$n</td>";
            $n--;
            for($j=0;$j<=9;$j++){
               echo "<td width='76px'";
               if($set[$i*10+$j]->userId!="" && $set[$i*10+$j]->ParcelCount>0){
                   echo "bgcolor='#BFEAFA'";
               }else if($set[$i*10+$j]->userId!="" && $set[$i*10+$j]->ParcelCount == 0){
                   echo "bgcolor='FFFFFF'";
               }if($set[$i*10+$j]->status==2){echo "bgcolor='#BFB4FF'";}
               echo ">{$set[$i*10+$j]->locationNo}<br/>";
               if($set[$i*10+$j]->userId!=""){echo "<a style='color:#860808;' href='/admini/managestore/index/quick/".$set[$i*10+$j]->userinfo->nikename."/history/2'>".$set[$i*10+$j]->userinfo->nikename."<br/>".$set[$i*10+$j]->userinfo->storeno."<br/>".$set[$i*10+$j]->ParcelCount."</a>";}
               if($set[$i*10+$j]->status==2){echo "不可用";}
               echo "</td>";
            }     
            echo "</tr>";          
        }
       echo "<tr><td style='height:22px;background-color:#FFFFFF;'>&nbsp;</td><td style='background-color:#FFFFFF;'>&nbsp;1</td><td style='background-color:#FFFFFF;'>&nbsp;2</td>
            <td style='background-color:#FFFFFF;'>&nbsp;3</td><td style='background-color:#FFFFFF;'>&nbsp;4</td>
            <td style='background-color:#FFFFFF;'>&nbsp;5</td><td style='background-color:#FFFFFF;'>&nbsp;6</td><td style='background-color:#FFFFFF;'>&nbsp;7</td>
            <td style='background-color:#FFFFFF;'>&nbsp;8</td><td style='background-color:#FFFFFF;'>&nbsp;9</td><td style='background-color:#FFFFFF;'>&nbsp;0</td>
            </tr>";
       echo "</table>";        
    }
?>
    <div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;line-height: 36px;" id='sel'>
        <form action="/admini/managestore/storelocation"  method="post" style="margin:0px" id="form1">
        <label for="quick">快速搜索：</label><input type="text" id="quick" name="name"/>
        <input type="submit" id="queryButton" name="queryButton" value="查询"/>
        </form>
        <?php if($this->search != ""){?>
            <div id="searchResult" style="width:100%;height:auto;">
                <?php foreach($this->search as $val){?>
                <div style="float:left;margin-left:10px;border:1px solid #111;">
                    <p><?php echo $val->locationNo?$val->locationNo:"无库位号"; ?></p>
                    <p><?php echo $val->userinfo->nikename?$val->userinfo->nikename:"无用户"; ?></p>
                    <p><?php echo $val->userinfo->storeno?$val->userinfo->storeno:"无该仓库号";?></p>
                </div>
                <?php } ?>
            </div>           
        <?php } ?>
    </div>
<div style="width:840px;float:left;">
<div style="width:840px;background-color:#EEEEEE;float:left;">
    <span style="margin-left:30px;"><font size='5'>AA</font></span>
    <?php drawTable($this->aa); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;">
    <span style="margin-left:30px;"><font size='5'>AB</font></span>
    <?php drawTable($this->ab); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
    <span style="margin-left:30px;"><font size='5'>AE</font></span>
    <?php drawTable($this->ae); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;">
    <span style="margin-left:30px;"><font size='5'>AF</font></span>
     <?php drawTable($this->af); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
    <span style="margin-left:30px;"><font size='5'>AI</font></span>
     <?php drawTable($this->ai); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;">
    <span style="margin-left:30px;"><font size='5'>AJ</font></span>
     <?php drawTable($this->aj); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
    <span style="margin-left:30px;"><font size='5'>AM</font></span>
     <?php drawTable($this->am); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;">
    <span style="margin-left:30px;"><font size='5'>AN</font></span>
     <?php drawTable($this->an); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
<span style="margin-left:30px;"><font size='5'>AQ</font></span>
 <?php drawTable($this->aq); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:left;">
<span style="margin-left:30px;"><font size='5'>AR</font></span>
 <?php drawTable($this->ar); ?>
</div>  
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
<span style="margin-left:30px;"><font size='5'>AS</font></span>
 <?php drawTable($this->as); ?>
</div>   
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
<span style="margin-left:30px;"><font size='5'>AT</font></span>
 <?php drawTable($this->at); ?>
</div> 
<div style="width:840px;background-color:#EEEEEE;float:left;">
<span style="margin-left:30px;"><font size='5'>AX</font></span>
 <?php drawTable($this->ax); ?>
</div>  
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
<span style="margin-left:30px;"><font size='5'>AY</font></span>
 <?php drawTable($this->ay); ?>
</div>   
<div style="width:840px;background-color:#EEEEEE;float:left;margin-top:28px;">
<span style="margin-left:30px;"><font size='5'>AZ</font></span>
 <?php drawTable($this->az); ?>
</div> 
</div>

<div style="width:840px;float:right;">
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AC</font></span>
     <?php drawTable($this->ac); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AD</font></span>
     <?php drawTable($this->ad); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;margin-top: 28px;">
    <span style="margin-left:30px;"><font size='5'>AG</font></span>
     <?php drawTable($this->ag); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AH</font></span>
     <?php drawTable($this->ah); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;margin-top: 28px;">
    <span style="margin-left:30px;"><font size='5'>AK</font></span>
     <?php drawTable($this->ak); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AL</font></span>
     <?php drawTable($this->al); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;margin-top: 28px;">
    <span style="margin-left:30px;"><font size='5'>AO</font></span>
     <?php drawTable($this->ao); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AP</font></span>
     <?php drawTable($this->ap); ?>
</div>
    <div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AU</font></span>
     <?php drawTable($this->au); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;margin-top: 28px;">
    <span style="margin-left:30px;"><font size='5'>AV</font></span>
     <?php drawTable($this->av); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>AW</font></span>
     <?php drawTable($this->aw); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>A2</font></span>
     <?php drawTable($this->a2); ?>
</div>
<div style="width:840px;background-color:#EEEEEE;float:right;">
    <span style="margin-left:30px;"><font size='5'>A3</font></span>
     <?php drawTable($this->a3); ?>
</div>
</div>





